import service from "../../utils/request"

const CUSTOMER_DATA = 'CUSTOMER_DATA'
export const getCustomPhone = async (): Promise<Result<string>> =>
    await service.get(`/redis/get/${CUSTOMER_DATA}`)

export const setCustomPhone = async (phone: string): Promise<Result<string>> => {
    let data = {
        key: CUSTOMER_DATA,
        value: phone
    }
    return await service.post(`/redis/set`, data)
}
